package org.seedltd.upms.model.sys.form;

import com.baomidou.mybatisplus.annotation.OrderBy;
import lombok.Getter;
import lombok.Setter;
import org.seedltd.core.base.BaseSearchForm;
import org.seedltd.base.annotation.Like;
import org.seedltd.base.annotation.LikeType;
import org.seedltd.base.annotation.SqlSegment;
import org.seedltd.upms.enums.EnableStatus;

import java.util.Date;

/**
 * 字典管理列表搜索条件
 * 
 * @author laizuan
 * @since 2021/07/24
 */
@Getter
@Setter
public class SysDictSearchForm extends BaseSearchForm {

    /**
     * 字典类型
     */
    @SqlSegment
    private String dictType;

    /**
     * 显示名称
     */
    @Like(likeType = LikeType.full)
    private String label;

    /**
     * 字典值
     */
    @SqlSegment
    private String value1;

    /**
     * 启用状态(1启用 0禁用)
     */
    @SqlSegment
    private EnableStatus enabled;

    /**
     * 排序
     */
    @OrderBy(sort = 1)
    private Integer sortNo;

    /**
     * 创建时间
     */
    @OrderBy(sort = 2)
    private Date createTime;

}
